import request from 'utils/request'

interface getPoliceTotalPerOption {
  dzcode?: string
}

// 勤务力量-分类统计
export function getPoliceTotalPer ({ dzcode }: getPoliceTotalPerOption) {
  return request({
    url: '/police/situation/getPoliceTotalPer',
    method: 'GET',
    params: {
      dzcode
    }
  })
}

// 勤务力量-警务力量-地图分布
export function getPoliceMap ({ dzcode }: getPoliceTotalPerOption) {
  return request({
    url: '/police/situation/getPoliceMap',
    method: 'GET',
    params: {
      dzcode
    }
  })
}
